package cn.com.cifi.mars.mapper.mars;


import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.com.cifi.mars.bean.dto.UserRoleDto;
import cn.com.cifi.mars.entity.common.SysUserRole;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yyd
 * @since 2019-09-18
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

	List<UserRoleDto>selectUserRolePage(Page page,@Param("roleId")String roleId);
	
	int selectUserRoleByUserRoleId(@Param("roleId")String roleId,@Param("userIds") List<String>userIds);
	
    List<SysUserRole>selectByUserId(@Param("userId")String userId);
    
    List<UserRoleDto>selectUserRoleList(@Param("userId")String userId);
}
